using NodeCanvas.Variables;

namespace NodeCanvas.Conditions
{
	[Category("✫ Blackboard")]
	public class CheckInt : ConditionTask
	{
		[BlackboardOnly]
		public BBInt valueA;

		public CompareMethod checkType;

		public BBInt valueB;

		protected override string info
		{
			get
			{
				return string.Concat(valueA, TaskTools.GetCompareString(checkType), valueB);
			}
		}

		protected override bool OnCheck()
		{
			return TaskTools.Compare(valueA.value, valueB.value, checkType);
		}
	}
}
